package meterMonitor.biz;

import meterMonitor.mapper.ProductivityMapper;
import meterMonitor.model.Productivity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ProductivityBiz {


    @Autowired
    ProductivityMapper productivityMapper;

    public void add(Productivity productivity) {
        productivityMapper.add(productivity);
    }

    public void update(Productivity productivity) {
        productivityMapper.update(productivity);
    }

    public List<Productivity> query(Productivity productivity) {
        return productivityMapper.query(productivity);
    }

    public void delete(Productivity productivity) {
        productivityMapper.delete(productivity);
    }

}
